package com.lcg.liteflow.chain1;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

/**
 * @author: LCG
 * @date: 2023-03-22 13:55:33
 * @description:
 **/
@LiteflowComponent("c")
public class CCompant extends NodeComponent {

    @Qualifier("threadLocal1")
    @Autowired
    private ThreadLocal<String> threadLocal;

    @Override
    public void process() throws Exception {
        String s = threadLocal.get();
        System.out.println("c->"+s);
    }
}
